package com.taobao.api.response;

import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.TaobaoObject;
import java.util.Date;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: tmall.nr.order.query.jst response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class TmallNrOrderQueryJstResponse extends TaobaoResponse {

	private static final long serialVersionUID = 7155132741885351547L;

	/** 
	 * result
	 */
	@ApiField("result")
	private NewRetailResult result;


	public void setResult(NewRetailResult result) {
		this.result = result;
	}
	public NewRetailResult getResult( ) {
		return this.result;
	}
	
	/**
 * 子订单列表
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrOrderDto extends TaobaoObject {

	private static final long serialVersionUID = 8837873494182889962L;

	/**
		 * 实际付款金额
		 */
		@ApiField("actual_paid_fee")
		private Long actualPaidFee;
		/**
		 * 修改价格修改的金额
		 */
		@ApiField("adjust_fee")
		private Long adjustFee;
		/**
		 * 商品价格
		 */
		@ApiField("auction_price")
		private Long auctionPrice;
		/**
		 * 买家昵称
		 */
		@ApiField("buyer_nick")
		private String buyerNick;
		/**
		 * 创建时间
		 */
		@ApiField("create_time")
		private Date createTime;
		/**
		 * 店铺优惠的分摊
		 */
		@ApiField("discount_fee")
		private Long discountFee;
		/**
		 * 商品id
		 */
		@ApiField("item_id")
		private Long itemId;
		/**
		 * 数量
		 */
		@ApiField("num")
		private Long num;
		/**
		 * 子订单号
		 */
		@ApiField("order_id")
		private Long orderId;
		/**
		 * 商家商品编码
		 */
		@ApiField("out_id_item_code")
		private String outIdItemCode;
		/**
		 * 商家sku的外部编码
		 */
		@ApiField("outer_id_sku")
		private String outerIdSku;
		/**
		 * 退款状态退款状态。退款状态。可选值WAIT_SELLER_AGREE(买家已经申请退款，等待卖家同意)，WAIT_BUYER_RETURN_GOODS(卖家已经同意退款，等待买家退货)，WAIT_SELLER_CONFIRM_GOODS(买家已经退货，等待卖家确认收货)，SELLER_REFUSE_BUYER(卖家拒绝退款)，CLOSED(退款关闭)，SUCCESS(退款成功)
		 */
		@ApiField("refund_status")
		private String refundStatus;
		/**
		 * 商家昵称
		 */
		@ApiField("seller_nick")
		private String sellerNick;
		/**
		 * skuId
		 */
		@ApiField("sku_id")
		private Long skuId;
		/**
		 * 商品标题
		 */
		@ApiField("title")
		private String title;
	

	public Long getActualPaidFee() {
			return this.actualPaidFee;
		}
		public void setActualPaidFee(Long actualPaidFee) {
			this.actualPaidFee = actualPaidFee;
		}
		public Long getAdjustFee() {
			return this.adjustFee;
		}
		public void setAdjustFee(Long adjustFee) {
			this.adjustFee = adjustFee;
		}
		public Long getAuctionPrice() {
			return this.auctionPrice;
		}
		public void setAuctionPrice(Long auctionPrice) {
			this.auctionPrice = auctionPrice;
		}
		public String getBuyerNick() {
			return this.buyerNick;
		}
		public void setBuyerNick(String buyerNick) {
			this.buyerNick = buyerNick;
		}
		public Date getCreateTime() {
			return this.createTime;
		}
		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}
		public Long getDiscountFee() {
			return this.discountFee;
		}
		public void setDiscountFee(Long discountFee) {
			this.discountFee = discountFee;
		}
		public Long getItemId() {
			return this.itemId;
		}
		public void setItemId(Long itemId) {
			this.itemId = itemId;
		}
		public Long getNum() {
			return this.num;
		}
		public void setNum(Long num) {
			this.num = num;
		}
		public Long getOrderId() {
			return this.orderId;
		}
		public void setOrderId(Long orderId) {
			this.orderId = orderId;
		}
		public String getOutIdItemCode() {
			return this.outIdItemCode;
		}
		public void setOutIdItemCode(String outIdItemCode) {
			this.outIdItemCode = outIdItemCode;
		}
		public String getOuterIdSku() {
			return this.outerIdSku;
		}
		public void setOuterIdSku(String outerIdSku) {
			this.outerIdSku = outerIdSku;
		}
		public String getRefundStatus() {
			return this.refundStatus;
		}
		public void setRefundStatus(String refundStatus) {
			this.refundStatus = refundStatus;
		}
		public String getSellerNick() {
			return this.sellerNick;
		}
		public void setSellerNick(String sellerNick) {
			this.sellerNick = sellerNick;
		}
		public Long getSkuId() {
			return this.skuId;
		}
		public void setSkuId(Long skuId) {
			this.skuId = skuId;
		}
		public String getTitle() {
			return this.title;
		}
		public void setTitle(String title) {
			this.title = title;
		}

}

	/**
 * 返回数据
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class TradeOrderDetailDto extends TaobaoObject {

	private static final long serialVersionUID = 7763931276922724445L;

	/**
		 * 预约结束时间
		 */
		@ApiField("appoint_end_time")
		private String appointEndTime;
		/**
		 * 预约开始时间
		 */
		@ApiField("appoint_start_time")
		private String appointStartTime;
		/**
		 * 买家留言
		 */
		@ApiField("buyer_memo")
		private String buyerMemo;
		/**
		 * 买家昵称
		 */
		@ApiField("buyer_nick")
		private String buyerNick;
		/**
		 * 创建时间
		 */
		@ApiField("create_time")
		private String createTime;
		/**
		 * 子订单列表
		 */
		@ApiListField("order_d_t_os")
		@ApiField("nr_order_dto")
		private List<NrOrderDto> orderDTOs;
		/**
		 * 主订单
		 */
		@ApiField("order_id")
		private Long orderId;
		/**
		 * 商家门店编码
		 */
		@ApiField("out_id_store_code")
		private String outIdStoreCode;
		/**
		 * 支付时间
		 */
		@ApiField("pay_time")
		private String payTime;
		/**
		 * 邮费单位分
		 */
		@ApiField("post_fee")
		private String postFee;
		/**
		 * 收货地址
		 */
		@ApiField("receiver_address")
		private String receiverAddress;
		/**
		 * 市
		 */
		@ApiField("receiver_city")
		private String receiverCity;
		/**
		 * 区
		 */
		@ApiField("receiver_district")
		private String receiverDistrict;
		/**
		 * 手机
		 */
		@ApiField("receiver_mobile")
		private String receiverMobile;
		/**
		 * 收货人
		 */
		@ApiField("receiver_name")
		private String receiverName;
		/**
		 * 电话
		 */
		@ApiField("receiver_phone")
		private String receiverPhone;
		/**
		 * 省
		 */
		@ApiField("receiver_province")
		private String receiverProvince;
		/**
		 * 镇
		 */
		@ApiField("receiver_town")
		private String receiverTown;
		/**
		 * 商家昵称
		 */
		@ApiField("seller_nick")
		private String sellerNick;
		/**
		 * 交易状态可选值:TRADE_NO_CREATE_PAY(没有创建支付宝交易)，WAIT_BUYER_PAY(等待买家付款)，SELLER_CONSIGNED_PART(卖家部分发货)，WAIT_SELLER_SEND_GOODS(等待卖家发货,即:买家已付款)，WAIT_BUYER_CONFIRM_GOODS(等待买家确认收货,即:卖家已发货)，TRADE_BUYER_SIGNED(买家已签收,货到付款专用)，TRADE_FINISHED(交易成功)，TRADE_CLOSED(付款以后用户退款成功，交易自动关闭)，TRADE_CLOSED_BY_TAOBAO(付款以前，卖家或买家主动关闭交易)，PAY_PENDING(国际信用卡支付付款确认中) * WAIT_PRE_AUTH_CONFIRM(0元购合约中)，PAID_FORBID_CONSIGN(拼团中订单或者发货强管控的订单，已付款但禁止发货)
		 */
		@ApiField("status")
		private String status;
		/**
		 * 门店编码
		 */
		@ApiField("store_code")
		private String storeCode;
	

	public String getAppointEndTime() {
			return this.appointEndTime;
		}
		public void setAppointEndTime(String appointEndTime) {
			this.appointEndTime = appointEndTime;
		}
		public String getAppointStartTime() {
			return this.appointStartTime;
		}
		public void setAppointStartTime(String appointStartTime) {
			this.appointStartTime = appointStartTime;
		}
		public String getBuyerMemo() {
			return this.buyerMemo;
		}
		public void setBuyerMemo(String buyerMemo) {
			this.buyerMemo = buyerMemo;
		}
		public String getBuyerNick() {
			return this.buyerNick;
		}
		public void setBuyerNick(String buyerNick) {
			this.buyerNick = buyerNick;
		}
		public String getCreateTime() {
			return this.createTime;
		}
		public void setCreateTime(String createTime) {
			this.createTime = createTime;
		}
		public List<NrOrderDto> getOrderDTOs() {
			return this.orderDTOs;
		}
		public void setOrderDTOs(List<NrOrderDto> orderDTOs) {
			this.orderDTOs = orderDTOs;
		}
		public Long getOrderId() {
			return this.orderId;
		}
		public void setOrderId(Long orderId) {
			this.orderId = orderId;
		}
		public String getOutIdStoreCode() {
			return this.outIdStoreCode;
		}
		public void setOutIdStoreCode(String outIdStoreCode) {
			this.outIdStoreCode = outIdStoreCode;
		}
		public String getPayTime() {
			return this.payTime;
		}
		public void setPayTime(String payTime) {
			this.payTime = payTime;
		}
		public String getPostFee() {
			return this.postFee;
		}
		public void setPostFee(String postFee) {
			this.postFee = postFee;
		}
		public String getReceiverAddress() {
			return this.receiverAddress;
		}
		public void setReceiverAddress(String receiverAddress) {
			this.receiverAddress = receiverAddress;
		}
		public String getReceiverCity() {
			return this.receiverCity;
		}
		public void setReceiverCity(String receiverCity) {
			this.receiverCity = receiverCity;
		}
		public String getReceiverDistrict() {
			return this.receiverDistrict;
		}
		public void setReceiverDistrict(String receiverDistrict) {
			this.receiverDistrict = receiverDistrict;
		}
		public String getReceiverMobile() {
			return this.receiverMobile;
		}
		public void setReceiverMobile(String receiverMobile) {
			this.receiverMobile = receiverMobile;
		}
		public String getReceiverName() {
			return this.receiverName;
		}
		public void setReceiverName(String receiverName) {
			this.receiverName = receiverName;
		}
		public String getReceiverPhone() {
			return this.receiverPhone;
		}
		public void setReceiverPhone(String receiverPhone) {
			this.receiverPhone = receiverPhone;
		}
		public String getReceiverProvince() {
			return this.receiverProvince;
		}
		public void setReceiverProvince(String receiverProvince) {
			this.receiverProvince = receiverProvince;
		}
		public String getReceiverTown() {
			return this.receiverTown;
		}
		public void setReceiverTown(String receiverTown) {
			this.receiverTown = receiverTown;
		}
		public String getSellerNick() {
			return this.sellerNick;
		}
		public void setSellerNick(String sellerNick) {
			this.sellerNick = sellerNick;
		}
		public String getStatus() {
			return this.status;
		}
		public void setStatus(String status) {
			this.status = status;
		}
		public String getStoreCode() {
			return this.storeCode;
		}
		public void setStoreCode(String storeCode) {
			this.storeCode = storeCode;
		}

}

	/**
 * result
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NewRetailResult extends TaobaoObject {

	private static final long serialVersionUID = 3569418521263186692L;

	/**
		 * errorCode
		 */
		@ApiField("error_code")
		private String errorCode;
		/**
		 * errorMessage
		 */
		@ApiField("error_message")
		private String errorMessage;
		/**
		 * 返回数据
		 */
		@ApiField("result_data")
		private TradeOrderDetailDto resultData;
		/**
		 * successFlag
		 */
		@ApiField("success_flag")
		private Boolean successFlag;
	

	public String getErrorCode() {
			return this.errorCode;
		}
		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}
		public String getErrorMessage() {
			return this.errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
		public TradeOrderDetailDto getResultData() {
			return this.resultData;
		}
		public void setResultData(TradeOrderDetailDto resultData) {
			this.resultData = resultData;
		}
		public Boolean getSuccessFlag() {
			return this.successFlag;
		}
		public void setSuccessFlag(Boolean successFlag) {
			this.successFlag = successFlag;
		}

}



}
